<?php if(!$this->isPopup): ?>
<p><?php echo WSB_Controller_Url::getHtmlLink($this->translate('container:selectModule:linkToContainer'), Cms_Url::containerEditUrl($this->page_id)); ?></p>
<?php endif; ?>

<?php if(!empty($this->flexOptions)): ?>
    <h1>Flexible Inhaltselemente</h1>
    <form action="<?php echo $this->url(array('action' => 'addflex')) ?>" method="get">
        <?php echo $this->formSelect('flex_id', null, null, $this->flexOptions) ?>
        <?php echo $this->formSubmit(null, 'OK') ?>
    </form>
<?php endif; ?>

<h1><?php echo $this->translate('container:selectModule:title') ?></h1>
<?php echo $this->htmlTable($this->modules, $this->columns, $this->fields, $this->settings); ?>